From 59bfd7bb03972f5c69b1e2b5b1f4abef7b8420e8 Mon Sep 17 00:00:00 2001 From: oliskoli Date: Sun, 7 May 2006 22:29:33 +0000 Subject: [PATCH] Fix wrong access to referenced time value. --- garmin_txt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/garmin_txt.c b/garmin_txt.c index 86d4558aa..caeea30b5 100644 --- a/garmin_txt.c +++ b/garmin_txt.c @@ -569,7 +569,7 @@ print_speed(double *distance, time_t *time) else unit = "kph"; idist = si_round(dist); - if ((time != 0) && (idist > 0)) { + if ((*time != 0) && (idist > 0)) { double speed = dist / (double)*time * SECONDS_PER_HOUR / 1000; int ispeed = si_round(speed); -- 2.30.2